<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        
           <h:panelGrid  columns="5" cellspacing="4">
                <h:link outcome="tweet">Tweeter</h:link>
                <h:link outcome="profile">Mon Profil</h:link>
                <h:link outcome="HashTagRecherche">Recherche hashtag</h:link>
                <h:link outcome="listUser">Follow any Users</h:link>
                <h:link outcome="ListTweet">Retweet any tweet</h:link>
            </h:panelGrid>
            <br />
       <div align="center">
           <h3>Afficher les tweets de ce HashTag:</h3>
            <h:form>
                <h:inputText value="#{HashTagBean.label}"></h:inputText>

                        
                <h:commandButton action="#{HashTagBean.recherche}" value="Rechercher les tweet"></h:commandButton>
                <h:dataTable value="#{HashTagBean.listTweetHashTag}" var="item" >
                    <h:column>
                        <h:outputText styleClass="output" value="#{item.user.name}"/> :
                    </h:column>
                     <h:column>
                        <h:outputText styleClass="output" value="#{item.message}"/>
                    </h:column>
                    <h:column>
                        <h:commandButton action="#{TweetBean.tweetMessage(item)}" value="Retweet"  />
                    </h:column>
                </h:dataTable>
            </h:form>
        </div>
    </h:body>
</html>

